<?php
/**
 * Leaving the site
 * 
 * @author David Christian Liedle <david.liedle@gmail.com>
 * @link   http://nmox.org/
 *
 */

require_once('../nmox/x.php');
$X->become(PAGE);
$X->title('Now leaving this website&hellip;');

if( $_GET ){
    
    // www.site.com/go/goodbye.php?now_heading_off_to=www.google.com/webmasters/
    $goodbye_dest = $_GET['now_heading_off_to'];
    $X->body( xH1('Link to '.$goodbye_dest) );
    $X->body( xP('This page isn&#8217;t finished yet. When it is, it would have taken you to '.$goodbye_dest) );
    
} else {
    
    // not performing my task; explain myself
    $X->body( xH1('Outbound Links Page') );
    $X->body( xP('This page is used by this site to wrap outbound links.') );
    
}
